<div class="admin">
<div class="tab panel dux-box admin-panel">
    <div class="panel-head"><strong>商品列表</strong></div>
    <div class="padding border-bottom">
        <a href="{:U('Member/add')}" class="button button-small border-green">添加管理员</a>
    </div>
    
    <form name="myform" method="post" id="myform" action="">
    <div class="table-responsive">
        <table id="table" class="table table-hover ">
            <tbody>
                <tr>
                    <th width="60">选择</th>
                    <th width="*" align="left">真实名</th>
                    <th width="120" align="left">会员组</th>
                    <th width="*" align="left">邮箱</th>
                    <th width="*" align="left">手机</th>
                    <th width="12%">添加时间</th>
                    <th width="7%">状态</th>
                    <th width="10%">操作</th>
                </tr>
                <foreach item="v" name="list">
                <tr>
                    <td align="center"><input type="checkbox" name="id[]" value="{$v.id}" /></td>
                    <td>{$v.truename}</td>
                    <td>{$v.group_id|getGroupName}</td>
                    <td>{$v.email}</td>
                    <td>{$v.mobile}</td>
                    <td align="center">{$v.created|date='Y-m-d',###}</td>
                    <td align="center">
                        <if condition="$v.status eq 1"><span class="tag bg-green">已审核</span></if><if condition="$v.status eq 0"><span class="tag bg-blue">被禁用</span></if></if>
                    </td>
                    <td align="center">
                        <a class="bg-blue tag" href="{:U('edit',array('id'=>$v['id']))}" title="修改">修改</a>&nbsp;&nbsp;
                        <a class="bg-red tag js-del" href="javascript:;" data="{$v.id}" title="删除">删除</a>
                    </td>
                </tr>
                </foreach>
            </tbody>
        </table>
    </div>
    <div class="panel-foot table-foot clearfix">
        <div class="float-left">
            <a class="button bg-blue button-small" id="selectAll" type="button">全选</a>
            <a class="button bg-blue button-small" id="selectSubmit" type="submit">删除</a>
        </div>
        <div class="float-rights">{$pages}</div>
    </div>
    </form>
</div>
</div>
<script type="text/javascript">
    $('#myform').layer({
        deleteUrl: "{:U('Member/del')}",
    });
</script>